SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 56273: SAS® Enterprise Guide® might display an invalid GIT Repository error when opening a project

DetailsAboutRate It

When you attempt to open a project that uses program history, SAS Enterprise Guide might instead open a blank project or display an exception such as the following:

-------------------------------------------------------------------------------------------------------
Exception information
-------------------------------------------------------------------------------------------------------

Path 'C:\Users\userid\AppData\Local\Temp\2\SEG42212\KnvA73dVT2OWIX8v' doesn't point at a valid Git repository or workdir.


-------------------------- Technical Information Follows --------------------------

Exception Details:
----------------------------------------
Exception type:  LibGit2Sharp.RepositoryNotFoundException
Message:         Path 'C:\Users\userid\AppData\Local\Temp\2\SEG42212\KnvA73dVT2OWIX8v' doesn't point at a valid Git repository or workdir.
Source:          LibGit2Sharp
Target Site:     git_repository_open

Stack Trace:
   at LibGit2Sharp.Core.Proxy.git_repository_open(String path)
   at LibGit2Sharp.Repository..ctor(String path, RepositoryOptions options)
   at SAS.EG.ProjectElements.InternalGitRepository..ctor(ProjectCollection pc, XmlNode xNode)
   at SAS.EG.ProjectElements.ProjectCollection.ReadProjectXML_EG(ProjectFile projectFile, List`1 ErrorList, Double fileVersion, XmlElement xProjectCol)
   at SAS.EG.ProjectElements.ProjectCollection.ReadProjectXML(String filepath, ProjectFile projectFile, String label, List`1& ErrorList)
   at SAS.EG.ProjectElements.ProjectCollection.OpenProject(DNADecoder decoder, List`1& WarningList)
   at SAS.EG.MainForm.OpenExistingProject(DNADecoder decoder)
   at SAS.EG.MainForm.DoOpenProjectDialog()
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

This problem can occur if the GIT repository where SAS Enterprise Guide temporarily stores the program history code is deleted or emptied.

You cannot recover the program history, but you can use the following steps to retrieve the process flow.

  1. Make a backup copy of your project so that the original copy is not overwritten.
  2. In SAS Enterprise Guide, open the copy that you made of the project. When you see the exception, click OK.
  3. Select Tools ► Options ► Program History.
  4. Click the Clear Program History button. When you are prompted to continue, click Yes.
  5. Deselect the Enable Program History option.
  6. Click OK to close the Options dialog box.
  7. Save this project (which should be your backup project).
  8. Close SAS Enterprise Guide.
  9. Reopen SAS Enterprise Guide and open the project that you just saved. If you want to re-enable the program history for the project, open Tools ► Options ► Program History, and select the Enable Program History option.


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Enterprise GuideWindows 7 Professional 32 bit7.17.129.4 TS1M29.4 TS1M3
Windows 7 Ultimate 32 bit7.17.129.4 TS1M29.4 TS1M3
Windows 7 Ultimate x647.17.129.4 TS1M29.4 TS1M3
Windows 7 Professional x647.17.129.4 TS1M29.4 TS1M3
Microsoft® Windows® for x647.17.129.4 TS1M29.4 TS1M3
Microsoft Windows 8 Enterprise 32-bit7.17.129.4 TS1M29.4 TS1M3
Microsoft Windows 8.1 Enterprise 32-bit7.17.129.4 TS1M29.4 TS1M3
Microsoft Windows 8 Enterprise x647.17.129.4 TS1M29.4 TS1M3
Microsoft Windows 8 Pro 32-bit7.17.129.4 TS1M29.4 TS1M3
Microsoft Windows 8 Pro x647.17.129.4 TS1M29.4 TS1M3
Windows 7 Home Premium x647.17.129.4 TS1M29.4 TS1M3
Microsoft Windows 8.1 Enterprise x647.17.129.4 TS1M29.4 TS1M3
Microsoft Windows 8.1 Pro7.17.129.4 TS1M29.4 TS1M3
Microsoft Windows 8.1 Pro 32-bit7.17.129.4 TS1M29.4 TS1M3
Microsoft Windows Server 20087.17.129.4 TS1M29.4 TS1M3
Microsoft Windows Server 2008 R27.17.129.4 TS1M29.4 TS1M3
Microsoft Windows Server 2008 for x647.17.129.4 TS1M29.4 TS1M3
Microsoft Windows Server 2012 Datacenter7.17.129.4 TS1M29.4 TS1M3
Microsoft Windows Server 2012 R2 Datacenter7.17.129.4 TS1M29.4 TS1M3
Microsoft Windows Server 2012 R2 Std7.17.129.4 TS1M29.4 TS1M3
Microsoft Windows Server 2012 Std7.17.129.4 TS1M29.4 TS1M3
Windows 7 Enterprise 32 bit7.17.129.4 TS1M29.4 TS1M3
Windows 7 Enterprise x647.17.129.4 TS1M29.4 TS1M3
Windows 7 Home Premium 32 bit7.17.129.4 TS1M29.4 TS1M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.